package com.gtenacg.fileservice.compent;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@Component
@ConfigurationProperties(prefix = "file-type")
public class FileTypeProperties {

    private Image image;
    private Application application;
    private Text text;

    @Data
    public static class Image {
        private List<String> supportedFormats;
    }

    @Data
    public static class Application {
        private List<String> supportedFormats;
    }

    @Data
    public static class Text {
        private List<String> supportedFormats;
    }

}
